package com.hzw.saas.web.shell.service.bo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzw.saas.common.util.constants.PatternConsts;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author zzl
 * @since 06/04/2021
 */
@Data
@Accessors(chain = true)
@ApiModel("SFTP文件信息")
public class SftpFileBO implements Serializable {

    private static final long serialVersionUID = -7370030654264307626L;

    @ApiModelProperty("目录/文件名称")
    private String name;

    @ApiModelProperty("资源类型，1目录|2文件")
    private int type;

    @ApiModelProperty("大小,byte")
    private long length;

    @ApiModelProperty("创建时间, format" + PatternConsts.NORM_DATETIME_PATTERN)
    @JsonFormat(pattern = PatternConsts.NORM_DATETIME_PATTERN)
    private Date createDate;
}
